package com.zhf.fm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhf.fm.constant.EAlarmType;
import com.zhf.fm.constant.EDealStatus;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: 曾鸿发
 * @create: 2021-11-22 13:26
 * @description：
 **/
@Data
public class BoAlarm implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Integer alarmId;

    //iot类型
    private EAlarmType iotType;

    //告警主题
    private String alarmTitle;

    //告警内容描述
    private String alarmContent;

    //设备code
    private String deviceCode;

    //设备名称
    private String deviceName;

    //模型文件地址
    private String bimUrl;

    //模型code
    private String bimCode;

    //所属空间id
    private String spaceId;

    //所属楼层id
    private String floorId;

    //所属楼栋id
    private String buildingId;

    //所属空间名称
    private String spaceName;

    //所属楼层名称
    private String floorName;

    //所属楼栋名称
    private String buildingName;

    //'W',待处理；'P',处理中；'F',已完成；'I',已忽略
    private EDealStatus dealStatus;

    //处理描述，处理结果
    private String dealResult;

    //创建时间
    @JsonFormat(timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createAt;

    //取消报警时间
    private Date updateAt;

    //二级报警类型
    private String secondAlarmType;

    //抓拍的图片
    private String capturePicUrl;

    //报警类型
    private String alarmType;

    //真实地址
    private String reallySmallPicUrl;
    private String reallyBigPicUrl;
    private int urlType;//图片类型  0:地址  1:base64

    //月份
    private String month;
    private int res;
    private String type;

}
